Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix all warnings in QML #30

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Conversation

SidneyCogdill
Copy link
Contributor

@SidneyCogdill SidneyCogdill commented Nov 11, 2024

This series of patches fix all the existing warnings in version 0.3.4 emitted by qmlls, the new changes in version 0.3.5 are not yet covered:

  • Migrate to the NEW behavior for policy QTP0001 (qrc:/qt/qml)
  • Make sure the URI name ChatView matches the subdirectory name to suppress CMake warning. (git wrongly detected ChatItem.qml as being deleted and recreated)
  • Get rid of all unbound accesses
  • Add DEPENDENCIES QtQuick to make sure qmlls can properly resolve QQuickItem

Unrelated changes:

  • Change target_include_directories to use PRIVATE scope. Don’t add unneeded PUBLIC requirements; Other modules should include the top level directory instead and use relative path (eg.. #include "ChatView/ChatWidget.hpp") to avoid potential name clashing in the future

The patches has been tested against the latest commit, on Qt Creator 14.0.2 (Windows 11). All functionalities seem to continue working.

@Palm1r Palm1r merged commit 7ad8ddf into Palm1r:main Nov 11, 2024
@SidneyCogdill SidneyCogdill deleted the patch/fix-qml-warnings branch November 11, 2024 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants